package org.llc.bpmn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class ResourcePathController {

    @RequestMapping(value = "/purchase", method = RequestMethod.GET)
    String purchase() {
        return "purchase/purchaseapply";
    }

    @RequestMapping(value = "/historypurchaseprocess", method = RequestMethod.GET)
    String historypurchaseprocess() {
        return "purchase/historypurchaseprocess";
    }

    @RequestMapping(value = "/purchasemanager", method = RequestMethod.GET)
    String purchasemanager() {
        return "purchase/purchasemanager";
    }

    @RequestMapping(value = "/finance", method = RequestMethod.GET)
    String finance() {
        return "purchase/finance";
    }

    @RequestMapping(value = "/manager", method = RequestMethod.GET)
    String manager() {
        return "purchase/manager";
    }

    @RequestMapping(value = "/pay", method = RequestMethod.GET)
    String pay() {
        return "purchase/pay";
    }

    @RequestMapping(value = "/updateapply", method = RequestMethod.GET)
    String updateapply() {
        return "purchase/updateapply";
    }

    @RequestMapping(value = "/receiveitem", method = RequestMethod.GET)
    String receiveitem() {
        return "purchase/receiveitem";
    }

    @RequestMapping(value = "/mypurchase", method = RequestMethod.GET)
    String mypurchase() {
        return "purchase/mypurchase";
    }









    @RequestMapping(value = "/deletedeploy", method = RequestMethod.POST)
    public String deletedeploy(@RequestParam("deployid") String deployid) throws Exception {
//        rep.deleteDeployment(deployid, true);
        return "activiti/processlist";
    }

    @RequestMapping(value = "/runningprocess", method = RequestMethod.GET)
    public String task() {
        return "activiti/runningprocess";
    }

    @RequestMapping(value = "/deptleaderaudit", method = RequestMethod.GET)
    public String mytask() {
        return "activiti/deptleaderaudit";
    }

    @RequestMapping(value = "/hraudit", method = RequestMethod.GET)
    public String hr() {
        return "activiti/hraudit";
    }

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String my() {
        return "index";
    }

    @RequestMapping(value = "/leaveapply", method = RequestMethod.GET)
    public String leave() {
        return "activiti/leaveapply";
    }

    @RequestMapping(value = "/reportback", method = RequestMethod.GET)
    public String reprotback() {
        return "activiti/reportback";
    }

    @RequestMapping(value = "/modifyapply", method = RequestMethod.GET)
    public String modifyapply() {
        return "activiti/modifyapply";
    }

    @RequestMapping(value = "myleaves", method = RequestMethod.GET)
    String myleaves() {
        return "activiti/myleaves";
    }


    @RequestMapping(value = "myleaveprocess", method = RequestMethod.GET)
    String myleaveprocess() {
        return "activiti/myleaveprocess";
    }

    @RequestMapping(value = "/historyprocess", method = RequestMethod.GET)
    public String history() {
        return "activiti/historyprocess";
    }

    @RequestMapping(value = "/activiti/task-deptleaderaudit", method = RequestMethod.GET)
    String url() {
        return "/activiti/task-deptleaderaudit";
    }

    @RequestMapping(value = "/processlist", method = RequestMethod.GET)
    String process() {
        return "activiti/processlist";
    }
}
